#pragma once

#include "cocos2d.h"
#include "cocos-ext.h"

using namespace cocos2d;

class PauseLayer : public CCLayer 
{
public:
    virtual bool init();  
    CREATE_FUNC(PauseLayer);

	~PauseLayer(void); 
	
	void paused(CCScene* scene);
	void mainmenu(CCObject* pSender);
	void share(CCObject* pSender);
	void restart(CCObject* pSender);
	void resume(CCObject* pSender);
	void bgVolumeChange(CCObject *pSender, extension::SliderEventType type);
	void effectVolumeChange(CCObject *pSender, extension::SliderEventType type);
	void updateVolume();
	void saveScreen();

private:
	extension::UILayer *m_pUiLayer;
    extension::Layout *m_pWidget;
	extension::UISlider* slider01;
	extension::UISlider* slider02;
	CCSize _winSize;
	CCScene* _scene;
};


